package server.main.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName(value = "account_role")
public class AccountRole {



  @TableId(type = IdType.AUTO)
  private Integer id;


  @TableField(value = "gmt_create",fill = FieldFill.INSERT)
  @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
  @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
  private Date gmtCreate;

  @TableField(value = "gmt_modified", fill = FieldFill.UPDATE)
  @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
  @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
  private Date gmtModified;

  @TableField(value = "server_account_jobnum")
  private String serverAccountJobnum;

  @TableField(value = "role_id")
  private Integer roleId;




}
